package com.proactive.webapp.dao;

import java.util.List;

import com.proactive.webapp.entity.Resource;

public interface ResourceDAO {
	public int insert(Resource resource);
	public void update(Resource resource);
	public void updateStatus(Resource resource);
	public void updateViewCount(Resource resource);
	public Resource get(Resource resource);
	public List<Resource> getListByType(String loginAccount, String type, int start, int size);
	public List<Resource> getListByCategory(String loginAccount, String type, int categoryID, int start, int size);
	public int countTotal(int categoryID);
	public List<Resource> getListByWriter(String loginAccount, int start, int size);
	public List<Resource> getListByMember(String account, String loginAccount, int start, int size);
	public int countTotalByWriter(String account);
	public int countTotalByMember(String account);
}
